import request from '@/utils/request'

// 查询商品品类分析缓存列表
export function synData(query) {
  return request({
    url: '/sale/BiProTypeMiddleDwd/synData',
    method: 'get',
    params: query
  })
}
// 查询商品品类分析缓存列表
export function selectNewProSaleList(query) {
  return request({
    url: '/sale/BiProTypeMiddleDwd/selectNewProSaleList',
    method: 'get',
    params: query
  })
}

// 查询商品品类分析缓存列表
export function listBiProTypeMiddleDwd(query) {
  return request({
    url: '/sale/BiProTypeMiddleDwd/list',
    method: 'get',
    params: query
  })
}
// 查询商品品类分析缓存列表
export function selectFirstLevelsaleList(query) {
  return request({
    url: '/sale/BiProTypeMiddleDwd/selectFirstLevelSaleList',
    method: 'get',
    params: query
  })
}
// 查询商品品类分析缓存详细
export function getBiProTypeMiddleDwd(id) {
  return request({
    url: '/sale/BiProTypeMiddleDwd/' + id,
    method: 'get'
  })
}

// 新增商品品类分析缓存
export function addBiProTypeMiddleDwd(data) {
  return request({
    url: '/sale/BiProTypeMiddleDwd',
    method: 'post',
    data: data
  })
}

// 修改商品品类分析缓存
export function updateBiProTypeMiddleDwd(data) {
  return request({
    url: '/sale/BiProTypeMiddleDwd',
    method: 'put',
    data: data
  })
}

// 删除商品品类分析缓存
export function delBiProTypeMiddleDwd(id) {
  return request({
    url: '/sale/BiProTypeMiddleDwd/' + id,
    method: 'delete'
  })
}
